<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.9.1"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>libevdev: Modifying the appearance or capabilities of the device</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
<link href="libevdevdoxygen.css" rel="stylesheet" type="text/css"/>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="doxy-boot.js"></script>
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">libevdev 1.13.0</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel panel-default" style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Modifying the appearance or capabilities of the device</div>  </div>
</div><!--header-->
<div class="contents">

<p>Modifying the set of events reported by this device.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga8cddf7779debef0067665671e911ec41"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a> { <a class="el" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a>
, <a class="el" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a>
 }</td></tr>
<tr class="separator:ga8cddf7779debef0067665671e911ec41"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gae5dcdb7678cdc9be4ab1989725b4ed32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32">libevdev_set_name</a> (struct libevdev *dev, const char *name)</td></tr>
<tr class="memdesc:gae5dcdb7678cdc9be4ab1989725b4ed32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the device's name as returned by <a class="el" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12" title="Retrieve the device&#39;s name, either as set by the caller or as read from the kernel.">libevdev_get_name()</a>.  <a href="group__kernel.html#gae5dcdb7678cdc9be4ab1989725b4ed32">More...</a><br /></td></tr>
<tr class="separator:gae5dcdb7678cdc9be4ab1989725b4ed32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacd57c8d6ace8e0b1417809a9c1c67af3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3">libevdev_set_phys</a> (struct libevdev *dev, const char *phys)</td></tr>
<tr class="memdesc:gacd57c8d6ace8e0b1417809a9c1c67af3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the device's physical location as returned by <a class="el" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d" title="Retrieve the device&#39;s physical location, either as set by the caller or as read from the kernel.">libevdev_get_phys()</a>.  <a href="group__kernel.html#gacd57c8d6ace8e0b1417809a9c1c67af3">More...</a><br /></td></tr>
<tr class="separator:gacd57c8d6ace8e0b1417809a9c1c67af3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4e4fd2627744fd5811c50c7403f27ad7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7">libevdev_set_uniq</a> (struct libevdev *dev, const char *uniq)</td></tr>
<tr class="memdesc:ga4e4fd2627744fd5811c50c7403f27ad7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the device's unique identifier as returned by <a class="el" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4" title="Retrieve the device&#39;s unique identifier, either as set by the caller or as read from the kernel.">libevdev_get_uniq()</a>.  <a href="group__kernel.html#ga4e4fd2627744fd5811c50c7403f27ad7">More...</a><br /></td></tr>
<tr class="separator:ga4e4fd2627744fd5811c50c7403f27ad7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga62fbdaac056ab5c3db154a9eeaf33799"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga62fbdaac056ab5c3db154a9eeaf33799">libevdev_set_id_product</a> (struct libevdev *dev, int product_id)</td></tr>
<tr class="separator:ga62fbdaac056ab5c3db154a9eeaf33799"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ce28051ebbb73de1d04d782f4d0d6fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga8ce28051ebbb73de1d04d782f4d0d6fe">libevdev_set_id_vendor</a> (struct libevdev *dev, int vendor_id)</td></tr>
<tr class="separator:ga8ce28051ebbb73de1d04d782f4d0d6fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf99139c728ba1bd4b37ede612780b6b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaf99139c728ba1bd4b37ede612780b6b0">libevdev_set_id_bustype</a> (struct libevdev *dev, int bustype)</td></tr>
<tr class="separator:gaf99139c728ba1bd4b37ede612780b6b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee1d2db88b191ec21d5bf22dd4fe3055"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaee1d2db88b191ec21d5bf22dd4fe3055">libevdev_set_id_version</a> (struct libevdev *dev, int version)</td></tr>
<tr class="separator:gaee1d2db88b191ec21d5bf22dd4fe3055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc552080520c9d886452b05f3a1d75b6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gafc552080520c9d886452b05f3a1d75b6">libevdev_enable_property</a> (struct libevdev *dev, unsigned int prop)</td></tr>
<tr class="separator:gafc552080520c9d886452b05f3a1d75b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f6367c36331c803ad69b2591e210019"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga8f6367c36331c803ad69b2591e210019">libevdev_disable_property</a> (struct libevdev *dev, unsigned int prop)</td></tr>
<tr class="separator:ga8f6367c36331c803ad69b2591e210019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga79e82ee2a95cb08adb4172aabe0c7184"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184">libevdev_set_event_value</a> (struct libevdev *dev, unsigned int type, unsigned int code, int value)</td></tr>
<tr class="memdesc:ga79e82ee2a95cb08adb4172aabe0c7184"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value for a given event type and code.  <a href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184">More...</a><br /></td></tr>
<tr class="separator:ga79e82ee2a95cb08adb4172aabe0c7184"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c61f4919b03b0850529a50c37a20333"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333">libevdev_set_slot_value</a> (struct libevdev *dev, unsigned int slot, unsigned int code, int value)</td></tr>
<tr class="memdesc:ga0c61f4919b03b0850529a50c37a20333"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the value for a given code for the given slot.  <a href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333">More...</a><br /></td></tr>
<tr class="separator:ga0c61f4919b03b0850529a50c37a20333"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaca62172c2a823cd02eacf0d2292d917a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a">libevdev_set_abs_minimum</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
<tr class="memdesc:gaca62172c2a823cd02eacf0d2292d917a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the minimum for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gaca62172c2a823cd02eacf0d2292d917a">More...</a><br /></td></tr>
<tr class="separator:gaca62172c2a823cd02eacf0d2292d917a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2302fd9a491d8e27280157d67a703af6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6">libevdev_set_abs_maximum</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
<tr class="memdesc:ga2302fd9a491d8e27280157d67a703af6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the maximum for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#ga2302fd9a491d8e27280157d67a703af6">More...</a><br /></td></tr>
<tr class="separator:ga2302fd9a491d8e27280157d67a703af6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa192bf0c68620be819337da6ec361c21"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21">libevdev_set_abs_fuzz</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
<tr class="memdesc:gaa192bf0c68620be819337da6ec361c21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the fuzz for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gaa192bf0c68620be819337da6ec361c21">More...</a><br /></td></tr>
<tr class="separator:gaa192bf0c68620be819337da6ec361c21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabd309f30744a49e9391250b00ba2d67a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a">libevdev_set_abs_flat</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
<tr class="memdesc:gabd309f30744a49e9391250b00ba2d67a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the flat for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gabd309f30744a49e9391250b00ba2d67a">More...</a><br /></td></tr>
<tr class="separator:gabd309f30744a49e9391250b00ba2d67a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2266b59711cdaa4fc12fa56c9313a038"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038">libevdev_set_abs_resolution</a> (struct libevdev *dev, unsigned int code, int val)</td></tr>
<tr class="memdesc:ga2266b59711cdaa4fc12fa56c9313a038"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the resolution for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#ga2266b59711cdaa4fc12fa56c9313a038">More...</a><br /></td></tr>
<tr class="separator:ga2266b59711cdaa4fc12fa56c9313a038"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc7a4f5308e2dbf55f875630b8dca049"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049">libevdev_set_abs_info</a> (struct libevdev *dev, unsigned int code, const struct input_absinfo *abs)</td></tr>
<tr class="memdesc:gafc7a4f5308e2dbf55f875630b8dca049"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the abs info for the given EV_ABS event code, if the code exists.  <a href="group__kernel.html#gafc7a4f5308e2dbf55f875630b8dca049">More...</a><br /></td></tr>
<tr class="separator:gafc7a4f5308e2dbf55f875630b8dca049"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga59ef78b1557f9543d0060ab25b0167ca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca">libevdev_enable_event_type</a> (struct libevdev *dev, unsigned int type)</td></tr>
<tr class="memdesc:ga59ef78b1557f9543d0060ab25b0167ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly enable an event type on this device, even if the underlying device does not support it.  <a href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca">More...</a><br /></td></tr>
<tr class="separator:ga59ef78b1557f9543d0060ab25b0167ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabbacb53b66882b5335055c0fd1f40d9a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a">libevdev_disable_event_type</a> (struct libevdev *dev, unsigned int type)</td></tr>
<tr class="memdesc:gabbacb53b66882b5335055c0fd1f40d9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly disable an event type on this device, even if the underlying device provides it.  <a href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a">More...</a><br /></td></tr>
<tr class="separator:gabbacb53b66882b5335055c0fd1f40d9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga51cfda33fd526549046399aadd764fca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga51cfda33fd526549046399aadd764fca">libevdev_enable_event_code</a> (struct libevdev *dev, unsigned int type, unsigned int code, const void *data)</td></tr>
<tr class="memdesc:ga51cfda33fd526549046399aadd764fca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly enable an event code on this device, even if the underlying device does not support it.  <a href="group__kernel.html#ga51cfda33fd526549046399aadd764fca">More...</a><br /></td></tr>
<tr class="separator:ga51cfda33fd526549046399aadd764fca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6199a7c8144f54e092e913c2d2df16de"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de">libevdev_disable_event_code</a> (struct libevdev *dev, unsigned int type, unsigned int code)</td></tr>
<tr class="memdesc:ga6199a7c8144f54e092e913c2d2df16de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forcibly disable an event code on this device, even if the underlying device provides it.  <a href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de">More...</a><br /></td></tr>
<tr class="separator:ga6199a7c8144f54e092e913c2d2df16de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga41c0321b93349d0ddd1f1c007ccf7de9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9">libevdev_kernel_set_abs_info</a> (struct libevdev *dev, unsigned int code, const struct input_absinfo *abs)</td></tr>
<tr class="memdesc:ga41c0321b93349d0ddd1f1c007ccf7de9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the device's EV_ABS axis to the value defined in the abs parameter.  <a href="group__kernel.html#ga41c0321b93349d0ddd1f1c007ccf7de9">More...</a><br /></td></tr>
<tr class="separator:ga41c0321b93349d0ddd1f1c007ccf7de9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa7d13aeac3c40e16f296467780e67c01"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01">libevdev_kernel_set_led_value</a> (struct libevdev *dev, unsigned int code, enum <a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a> value)</td></tr>
<tr class="memdesc:gaa7d13aeac3c40e16f296467780e67c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn an LED on or off.  <a href="group__kernel.html#gaa7d13aeac3c40e16f296467780e67c01">More...</a><br /></td></tr>
<tr class="separator:gaa7d13aeac3c40e16f296467780e67c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga93a19fa6e5be57903aff7c4a60af2a00"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a> (struct libevdev *dev,...)</td></tr>
<tr class="memdesc:ga93a19fa6e5be57903aff7c4a60af2a00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Turn multiple LEDs on or off simultaneously.  <a href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">More...</a><br /></td></tr>
<tr class="separator:ga93a19fa6e5be57903aff7c4a60af2a00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2925b6fbf8c7991ff2164424b840b82d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d">libevdev_set_clock_id</a> (struct libevdev *dev, int clockid)</td></tr>
<tr class="memdesc:ga2925b6fbf8c7991ff2164424b840b82d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the clock ID to be used for timestamps.  <a href="group__kernel.html#ga2925b6fbf8c7991ff2164424b840b82d">More...</a><br /></td></tr>
<tr class="separator:ga2925b6fbf8c7991ff2164424b840b82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Modifying the set of events reported by this device. </p>
<p>By default, the libevdev device mirrors the kernel device, enabling only those bits exported by the kernel. This set of functions enable or disable bits as seen from the caller.</p>
<p>Enabling an event type or code does not affect event reporting - a software-enabled event will not be generated by the physical hardware. Disabling an event will prevent libevdev from routing such events to the caller. Enabling and disabling event types and codes is at the library level and thus only affects the caller.</p>
<p>If an event type or code is enabled at kernel-level, future users of this device will see this event enabled. Currently there is no option of disabling an event type or code at kernel-level. </p>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga8cddf7779debef0067665671e911ec41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8cddf7779debef0067665671e911ec41">&#9670;&nbsp;</a></span>libevdev_led_value</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab"></a>LIBEVDEV_LED_ON&#160;</td><td class="fielddoc"><p>Turn the LED on. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065"></a>LIBEVDEV_LED_OFF&#160;</td><td class="fielddoc"><p>Turn the LED off. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6199a7c8144f54e092e913c2d2df16de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6199a7c8144f54e092e913c2d2df16de">&#9670;&nbsp;</a></span>libevdev_disable_event_code()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_disable_event_code </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forcibly disable an event code on this device, even if the underlying device provides it. </p>
<p>This effectively mutes the respective set of events. libevdev will filter any events matching this type and code and none will reach the caller. <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> will return false for this code.</p>
<p>Disabling all event codes for a given type will not disable the event type. Use <a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a" title="Forcibly disable an event type on this device, even if the underlying device provides it.">libevdev_disable_event_type()</a> for that.</p>
<p>This is a local modification only affecting only this representation of this device.</p>
<p>Disabling codes of type EV_SYN will not work. Don't shoot yourself in the foot. It hurts.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">type</td><td>The event type to disable (EV_ABS, EV_KEY, ...) </td></tr>
    <tr><td class="paramname">code</td><td>The event code to disable (ABS_X, REL_X, etc.)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code</a> </dd>
<dd>
<a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a" title="Forcibly disable an event type on this device, even if the underlying device provides it.">libevdev_disable_event_type</a> </dd></dl>

</div>
</div>
<a id="gabbacb53b66882b5335055c0fd1f40d9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabbacb53b66882b5335055c0fd1f40d9a">&#9670;&nbsp;</a></span>libevdev_disable_event_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_disable_event_type </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forcibly disable an event type on this device, even if the underlying device provides it. </p>
<p>This effectively mutes the respective set of events. libevdev will filter any events matching this type and none will reach the caller. <a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type()</a> will return false for this type.</p>
<p>In most cases, a caller likely only wants to disable a single code, not the whole type. Use <a class="el" href="group__kernel.html#ga6199a7c8144f54e092e913c2d2df16de" title="Forcibly disable an event code on this device, even if the underlying device provides it.">libevdev_disable_event_code()</a> for that.</p>
<p>Disabling EV_SYN will not work. Don't shoot yourself in the foot. It hurts.</p>
<p>This is a local modification only affecting only this representation of this device.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">type</td><td>The event type to disable (EV_ABS, EV_KEY, ...)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type</a> </dd>
<dd>
<a class="el" href="group__kernel.html#gabbacb53b66882b5335055c0fd1f40d9a" title="Forcibly disable an event type on this device, even if the underlying device provides it.">libevdev_disable_event_type</a> </dd></dl>

</div>
</div>
<a id="ga8f6367c36331c803ad69b2591e210019"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8f6367c36331c803ad69b2591e210019">&#9670;&nbsp;</a></span>libevdev_disable_property()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_disable_property </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>prop</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">prop</td><td>The input property to disable, one of INPUT_PROP_...</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 on failure </dd></dl>

</div>
</div>
<a id="ga51cfda33fd526549046399aadd764fca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga51cfda33fd526549046399aadd764fca">&#9670;&nbsp;</a></span>libevdev_enable_event_code()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_enable_event_code </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forcibly enable an event code on this device, even if the underlying device does not support it. </p>
<p>While this cannot make the device actually report such events, it will now return true for <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a>.</p>
<p>The last argument depends on the type and code:</p><ul>
<li>If type is EV_ABS, data must be a pointer to a struct input_absinfo containing the data for this axis.</li>
<li>If type is EV_REP, data must be a pointer to a int containing the data for this axis</li>
<li>For all other types, the argument must be NULL.</li>
</ul>
<p>This function calls <a class="el" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca" title="Forcibly enable an event type on this device, even if the underlying device does not support it.">libevdev_enable_event_type()</a> if necessary.</p>
<p>This is a local modification only affecting only this representation of this device.</p>
<p>If this function is called with a type of EV_ABS and EV_REP on a device that already has the given event code enabled, the values in data overwrite the previous values.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">type</td><td>The event type to enable (EV_ABS, EV_KEY, ...) </td></tr>
    <tr><td class="paramname">code</td><td>The event code to enable (ABS_X, REL_X, etc.) </td></tr>
    <tr><td class="paramname">data</td><td>If type is EV_ABS, data points to a struct input_absinfo. If type is EV_REP, data points to an integer. Otherwise, data must be NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga59ef78b1557f9543d0060ab25b0167ca" title="Forcibly enable an event type on this device, even if the underlying device does not support it.">libevdev_enable_event_type</a> </dd></dl>

</div>
</div>
<a id="ga59ef78b1557f9543d0060ab25b0167ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga59ef78b1557f9543d0060ab25b0167ca">&#9670;&nbsp;</a></span>libevdev_enable_event_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_enable_event_type </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forcibly enable an event type on this device, even if the underlying device does not support it. </p>
<p>While this cannot make the device actually report such events, it will now return true for <a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type()</a>.</p>
<p>This is a local modification only affecting only this representation of this device.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">type</td><td>The event type to enable (EV_ABS, EV_KEY, ...)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 otherwise</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__bits.html#ga398bef155fa4a0cfb832de30723ebd14">libevdev_has_event_type</a> </dd></dl>

</div>
</div>
<a id="gafc552080520c9d886452b05f3a1d75b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafc552080520c9d886452b05f3a1d75b6">&#9670;&nbsp;</a></span>libevdev_enable_property()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_enable_property </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>prop</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">prop</td><td>The input property to enable, one of INPUT_PROP_...</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success or -1 on failure</dd></dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>

</div>
</div>
<a id="ga41c0321b93349d0ddd1f1c007ccf7de9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga41c0321b93349d0ddd1f1c007ccf7de9">&#9670;&nbsp;</a></span>libevdev_kernel_set_abs_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_kernel_set_abs_info </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct input_absinfo *&#160;</td>
          <td class="paramname"><em>abs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the device's EV_ABS axis to the value defined in the abs parameter. </p>
<p>This will be written to the kernel.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>The EV_ABS event code to modify, one of ABS_X, ABS_Y, etc. </td></tr>
    <tr><td class="paramname">abs</td><td>Axis info to set the kernel axis to</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga51cfda33fd526549046399aadd764fca" title="Forcibly enable an event code on this device, even if the underlying device does not support it.">libevdev_enable_event_code</a> </dd></dl>

</div>
</div>
<a id="gaa7d13aeac3c40e16f296467780e67c01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa7d13aeac3c40e16f296467780e67c01">&#9670;&nbsp;</a></span>libevdev_kernel_set_led_value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_kernel_set_led_value </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="group__kernel.html#ga8cddf7779debef0067665671e911ec41">libevdev_led_value</a>&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Turn an LED on or off. </p>
<p>Convenience function, if you need to modify multiple LEDs simultaneously, use <a class="el" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00" title="Turn multiple LEDs on or off simultaneously.">libevdev_kernel_set_led_values()</a> instead.</p>
<dl class="section note"><dt>Note</dt><dd>enabling an LED requires write permissions on the device's file descriptor.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>The EV_LED event code to modify, one of LED_NUML, LED_CAPSL, ... </td></tr>
    <tr><td class="paramname">value</td><td>Specifies whether to turn the LED on or off </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure </dd></dl>

</div>
</div>
<a id="ga93a19fa6e5be57903aff7c4a60af2a00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga93a19fa6e5be57903aff7c4a60af2a00">&#9670;&nbsp;</a></span>libevdev_kernel_set_led_values()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_kernel_set_led_values </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Turn multiple LEDs on or off simultaneously. </p>
<p>This function expects a pair of LED codes and values to set them to, terminated by a -1. For example, to switch the NumLock LED on but the CapsLock LED off, use:</p>
<div class="fragment"><div class="line"><a class="code" href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a>(dev, LED_NUML, <a class="code" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a>,</div>
<div class="line">                                    LED_CAPSL, <a class="code" href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a>,</div>
<div class="line">                                    -1);</div>
<div class="ttc" id="agroup__kernel_html_ga93a19fa6e5be57903aff7c4a60af2a00"><div class="ttname"><a href="group__kernel.html#ga93a19fa6e5be57903aff7c4a60af2a00">libevdev_kernel_set_led_values</a></div><div class="ttdeci">int libevdev_kernel_set_led_values(struct libevdev *dev,...)</div><div class="ttdoc">Turn multiple LEDs on or off simultaneously.</div></div>
<div class="ttc" id="agroup__kernel_html_gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065"><div class="ttname"><a href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a23e508440306c387ddf89acd2db9e065">LIBEVDEV_LED_OFF</a></div><div class="ttdeci">@ LIBEVDEV_LED_OFF</div><div class="ttdoc">Turn the LED off.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1921</div></div>
<div class="ttc" id="agroup__kernel_html_gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab"><div class="ttname"><a href="group__kernel.html#gga8cddf7779debef0067665671e911ec41a69d5a4cdf2a9357915fff0251a61d2ab">LIBEVDEV_LED_ON</a></div><div class="ttdeci">@ LIBEVDEV_LED_ON</div><div class="ttdoc">Turn the LED on.</div><div class="ttdef"><b>Definition:</b> libevdev.h:1920</div></div>
</div><!-- fragment --><p>If any LED code or value is invalid, this function returns -EINVAL and no LEDs are modified.</p>
<dl class="section note"><dt>Note</dt><dd>enabling an LED requires write permissions on the device's file descriptor.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">...</td><td>A pair of LED_* event codes and libevdev_led_value_t, followed by -1 to terminate the list. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure </dd></dl>

</div>
</div>
<a id="gabd309f30744a49e9391250b00ba2d67a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd309f30744a49e9391250b00ba2d67a">&#9670;&nbsp;</a></span>libevdev_set_abs_flat()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_abs_flat </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the flat for the given EV_ABS event code, if the code exists. </p>
<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
    <tr><td class="paramname">val</td><td>The new flat for this axis </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa192bf0c68620be819337da6ec361c21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa192bf0c68620be819337da6ec361c21">&#9670;&nbsp;</a></span>libevdev_set_abs_fuzz()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_abs_fuzz </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the fuzz for the given EV_ABS event code, if the code exists. </p>
<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
    <tr><td class="paramname">val</td><td>The new fuzz for this axis </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gafc7a4f5308e2dbf55f875630b8dca049"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafc7a4f5308e2dbf55f875630b8dca049">&#9670;&nbsp;</a></span>libevdev_set_abs_info()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_abs_info </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const struct input_absinfo *&#160;</td>
          <td class="paramname"><em>abs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the abs info for the given EV_ABS event code, if the code exists. </p>
<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
    <tr><td class="paramname">abs</td><td>The new absolute axis data (min, max, fuzz, flat, resolution) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2302fd9a491d8e27280157d67a703af6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2302fd9a491d8e27280157d67a703af6">&#9670;&nbsp;</a></span>libevdev_set_abs_maximum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_abs_maximum </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the maximum for the given EV_ABS event code, if the code exists. </p>
<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
    <tr><td class="paramname">val</td><td>The new maxium for this axis </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaca62172c2a823cd02eacf0d2292d917a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaca62172c2a823cd02eacf0d2292d917a">&#9670;&nbsp;</a></span>libevdev_set_abs_minimum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_abs_minimum </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the minimum for the given EV_ABS event code, if the code exists. </p>
<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
    <tr><td class="paramname">val</td><td>The new minimum for this axis </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2266b59711cdaa4fc12fa56c9313a038"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2266b59711cdaa4fc12fa56c9313a038">&#9670;&nbsp;</a></span>libevdev_set_abs_resolution()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_abs_resolution </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the resolution for the given EV_ABS event code, if the code exists. </p>
<p>This function has no effect if <a class="el" href="group__bits.html#gab2ab9dad417f33daa79fa0c3d682df0b">libevdev_has_event_code()</a> returns false for this code.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">code</td><td>One of ABS_X, ABS_Y, ... </td></tr>
    <tr><td class="paramname">val</td><td>The new axis resolution </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2925b6fbf8c7991ff2164424b840b82d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2925b6fbf8c7991ff2164424b840b82d">&#9670;&nbsp;</a></span>libevdev_set_clock_id()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_set_clock_id </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>clockid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the clock ID to be used for timestamps. </p>
<p>Further events from this device will report an event time based on the given clock.</p>
<p>This is a modification only affecting this representation of this device.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">clockid</td><td>The clock to use for future events. Permitted values are CLOCK_MONOTONIC and CLOCK_REALTIME (the default). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, or a negative errno on failure </dd></dl>

</div>
</div>
<a id="ga79e82ee2a95cb08adb4172aabe0c7184"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga79e82ee2a95cb08adb4172aabe0c7184">&#9670;&nbsp;</a></span>libevdev_set_event_value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_set_event_value </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the value for a given event type and code. </p>
<p>This only makes sense for some event types, e.g. setting the value for EV_REL is pointless.</p>
<p>This is a local modification only affecting only this representation of this device. A future call to <a class="el" href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3" title="Behaviour of this function is undefined if the device does not provide the event.">libevdev_get_event_value()</a> will return this value, unless the value was overwritten by an event.</p>
<p>If the device supports ABS_MT_SLOT, the value set for any ABS_MT_* event code is the value of the currently active slot. You should use <a class="el" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333" title="Set the value for a given code for the given slot.">libevdev_set_slot_value()</a> instead.</p>
<p>If the device supports ABS_MT_SLOT and the type is EV_ABS and the code is ABS_MT_SLOT, the value must be a positive number less then the number of slots on the device. Otherwise, <a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184" title="Set the value for a given event type and code.">libevdev_set_event_value()</a> returns -1.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">type</td><td>The event type for the code to query (EV_SYN, EV_REL, etc.) </td></tr>
    <tr><td class="paramname">code</td><td>The event code to set the value for, one of ABS_X, LED_NUML, etc. </td></tr>
    <tr><td class="paramname">value</td><td>The new value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, or -1 on failure. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">-1</td><td><ul>
<li>the device does not have the event type or</li>
<li>code enabled, or the code is outside the, or</li>
<li>the code is outside the allowed limits for the given type, or</li>
<li>the type cannot be set, or</li>
<li>the value is not permitted for the given code.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga0c61f4919b03b0850529a50c37a20333" title="Set the value for a given code for the given slot.">libevdev_set_slot_value</a> </dd>
<dd>
<a class="el" href="group__bits.html#ga6259f4c6bdba950329ff9cd48c2ef8a3" title="Behaviour of this function is undefined if the device does not provide the event.">libevdev_get_event_value</a> </dd></dl>

</div>
</div>
<a id="gaf99139c728ba1bd4b37ede612780b6b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf99139c728ba1bd4b37ede612780b6b0">&#9670;&nbsp;</a></span>libevdev_set_id_bustype()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_id_bustype </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bustype</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">bustype</td><td>The bustype to assign to this device</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for bustype the value is truncated at 16 bits. </dd></dl>

</div>
</div>
<a id="ga62fbdaac056ab5c3db154a9eeaf33799"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga62fbdaac056ab5c3db154a9eeaf33799">&#9670;&nbsp;</a></span>libevdev_set_id_product()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_id_product </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>product_id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">product_id</td><td>The product ID to assign to this device</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for product_id the value is truncated at 16 bits. </dd></dl>

</div>
</div>
<a id="ga8ce28051ebbb73de1d04d782f4d0d6fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8ce28051ebbb73de1d04d782f4d0d6fe">&#9670;&nbsp;</a></span>libevdev_set_id_vendor()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_id_vendor </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vendor_id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">vendor_id</td><td>The vendor ID to assign to this device</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for vendor_id the value is truncated at 16 bits. </dd></dl>

</div>
</div>
<a id="gaee1d2db88b191ec21d5bf22dd4fe3055"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaee1d2db88b191ec21d5bf22dd4fe3055">&#9670;&nbsp;</a></span>libevdev_set_id_version()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_id_version </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>version</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">version</td><td>The version to assign to this device</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. Even though the function accepts an int for version the value is truncated at 16 bits. </dd></dl>

</div>
</div>
<a id="gae5dcdb7678cdc9be4ab1989725b4ed32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5dcdb7678cdc9be4ab1989725b4ed32">&#9670;&nbsp;</a></span>libevdev_set_name()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_name </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the device's name as returned by <a class="el" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12" title="Retrieve the device&#39;s name, either as set by the caller or as read from the kernel.">libevdev_get_name()</a>. </p>
<p>This function destroys the string previously returned by <a class="el" href="group__bits.html#gaed0328c67b7a78422636d9fe09a73f12" title="Retrieve the device&#39;s name, either as set by the caller or as read from the kernel.">libevdev_get_name()</a>, a caller must take care that no references are kept.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">name</td><td>The new, non-NULL, name to assign to this device.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>

</div>
</div>
<a id="gacd57c8d6ace8e0b1417809a9c1c67af3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacd57c8d6ace8e0b1417809a9c1c67af3">&#9670;&nbsp;</a></span>libevdev_set_phys()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_phys </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>phys</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the device's physical location as returned by <a class="el" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d" title="Retrieve the device&#39;s physical location, either as set by the caller or as read from the kernel.">libevdev_get_phys()</a>. </p>
<p>This function destroys the string previously returned by <a class="el" href="group__bits.html#ga5df483b0b24d7b96ea1181808fab851d" title="Retrieve the device&#39;s physical location, either as set by the caller or as read from the kernel.">libevdev_get_phys()</a>, a caller must take care that no references are kept.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">phys</td><td>The new phys to assign to this device.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>

</div>
</div>
<a id="ga0c61f4919b03b0850529a50c37a20333"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c61f4919b03b0850529a50c37a20333">&#9670;&nbsp;</a></span>libevdev_set_slot_value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int libevdev_set_slot_value </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>slot</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the value for a given code for the given slot. </p>
<p>This is a local modification only affecting only this representation of this device. A future call to <a class="el" href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8" title="Return the current value of the code for the given slot.">libevdev_get_slot_value()</a> will return this value, unless the value was overwritten by an event.</p>
<p>This function does not set event values for axes outside the ABS_MT range, use <a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184" title="Set the value for a given event type and code.">libevdev_set_event_value()</a> instead.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device, already initialized with <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> </td></tr>
    <tr><td class="paramname">slot</td><td>The numerical slot number, must be smaller than the total number of slots on this device </td></tr>
    <tr><td class="paramname">code</td><td>The event code to set the value for, one of ABS_MT_POSITION_X, etc. </td></tr>
    <tr><td class="paramname">value</td><td>The new value to set</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success, or -1 on failure. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">-1</td><td><ul>
<li>the device does not have the event code enabled, or</li>
<li>the code is outside the allowed limits for multitouch events, or</li>
<li>the slot number is outside the limits for this device, or</li>
<li>the device does not support multitouch events.</li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__kernel.html#ga79e82ee2a95cb08adb4172aabe0c7184" title="Set the value for a given event type and code.">libevdev_set_event_value</a> </dd>
<dd>
<a class="el" href="group__mt.html#ga8c6303391cb4f90b2d46763cf4eb8bc8" title="Return the current value of the code for the given slot.">libevdev_get_slot_value</a> </dd></dl>

</div>
</div>
<a id="ga4e4fd2627744fd5811c50c7403f27ad7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4e4fd2627744fd5811c50c7403f27ad7">&#9670;&nbsp;</a></span>libevdev_set_uniq()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void libevdev_set_uniq </td>
          <td>(</td>
          <td class="paramtype">struct libevdev *&#160;</td>
          <td class="paramname"><em>dev</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>uniq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Change the device's unique identifier as returned by <a class="el" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4" title="Retrieve the device&#39;s unique identifier, either as set by the caller or as read from the kernel.">libevdev_get_uniq()</a>. </p>
<p>This function destroys the string previously returned by <a class="el" href="group__bits.html#ga6d9f7d44bff8828ead3d251177035ca4" title="Retrieve the device&#39;s unique identifier, either as set by the caller or as read from the kernel.">libevdev_get_uniq()</a>, a caller must take care that no references are kept.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dev</td><td>The evdev device </td></tr>
    <tr><td class="paramname">uniq</td><td>The new uniq to assign to this device.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This function may be called before <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a>. A call to <a class="el" href="group__init.html#ga6658ac490d68c307ff8b8d1536c12b44" title="Set the fd for this struct and initialize internal data.">libevdev_set_fd()</a> will overwrite any previously set value. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.9.1
</small></address>
</body>
</html>
